﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DevExpress.XtraEditors;
using System.Windows.Forms;
namespace BasicForm
{
    public class TutorialFormBase:DevExpress.XtraEditors.XtraForm
    {
        private DevExpress.Utils.WaitDialogForm dlg = null;
        public void CreateWaitDialog()
        {
            dlg = new DevExpress.Utils.WaitDialogForm("Xin vui lòng chờ đợi");
        }
        public void SetWaitDialogCaption(string fCaption)
        {
            if (dlg != null)
            {
                dlg.Caption = fCaption;
            }
        }
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);
            if (dlg != null)
                dlg.Close();
        }
    }
}
